﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IdentityModel.Selectors;
using System.Security.Cryptography;
using System.Configuration;

namespace GRWL.BZSC.WCFLib
{
    public class UserValidator : UserNamePasswordValidator
    {
        public override void Validate(string userName, string password)
        {
            if (userName == "APIUser")
                if (ConfigurationManager.AppSettings["APIPwd"] == password)
                    return;
            throw new Exception("非法访问！");
        }
    }
}
